package tongcheng.com.tongcheng.network;

import com.yanzhenjie.nohttp.RequestMethod;
import com.yanzhenjie.nohttp.rest.StringRequest;

/**
 * Created by P on 2017/7/18.
 */

public  class MyRequest extends StringRequest {

    public RequestMethod requestMethod=RequestMethod.GET;

    public void setRequestMethod(RequestMethod requestMethod) {
        this.requestMethod = requestMethod;
    }

    public MyRequest(String url) {
        super(url);
        this.requestMethod = RequestMethod.GET;
    }

    public MyRequest(String url, RequestMethod requestMethod) {
        super(url, requestMethod);
        this.requestMethod = requestMethod;
    }
}
